
import 'package:flutter/services.dart';

const MethodChannel _methodChannel =
    MethodChannel('plugins.flutter.io/toast_method');

class ToastUtil {
  static void showShort(String content) {
    final Map<String, String> params = <String, String>{
      'content': content,
    };
    _methodChannel.invokeMethod("toastShort", params);
  }

  static void showLong(String content) {
    final Map<String, String> params = <String, String>{
      'content': content,
    };
    _methodChannel.invokeMethod("toastLong", params);
  }
}
